import java.math.BigDecimal;
import java.util.ArrayList;


public class Packet {

	String arrivalTime;
	BigDecimal delta_from_previous_captured;
	BigDecimal delta_from_previous_displayed;
	long frame_Length;
	BigDecimal time_since_first;
	String frameNumber;
	String srcIPAddr; 
	String destIPAddr;
	String srcPort;
	String destPort;
	String protocols[];
	String session;
	boolean marker;  // 0 for continued packet 1 for end of frame
	boolean videoPacket; // 0 for audio 1 for video 
	
	/**
	 * @return the session
	 */
	public String getSession() {
		return session;
	}

	/**
	 * @param session the session to set
	 */
	public void setSession(String session) {
		this.session = session;
	}

	/**
	 * @return the srcIPAddr
	 */
	public String getSrcIPAddr() {
		return srcIPAddr;
	}

	/**
	 * @param srcIPAddr the srcIPAddr to set
	 */
	public void setSrcIPAddr(String srcIPAddr) {
		this.srcIPAddr = srcIPAddr;
	}

	/**
	 * @return the destIPAddr
	 */
	public String getDestIPAddr() {
		return destIPAddr;
	}

	/**
	 * @param destIPAddr the destIPAddr to set
	 */
	public void setDestIPAddr(String destIPAddr) {
		this.destIPAddr = destIPAddr;
	}

	/**
	 * @return the srcPort
	 */
	public String getSrcPort() {
		return srcPort;
	}

	/**
	 * @param srcPort the srcPort to set
	 */
	public void setSrcPort(String srcPort) {
		this.srcPort = srcPort;
	}

	/**
	 * @return the destPort
	 */
	public String getDestPort() {
		return destPort;
	}

	/**
	 * @param destPort the destPort to set
	 */
	public void setDestPort(String destPort) {
		this.destPort = destPort;
	}

	/**
	 * @return the protocols
	 */
	public String[] getProtocols() {
		return protocols;
	}

	/**
	 * @param protocols the protocols to set
	 */
	public void setProtocols(String[] protocols) {
		this.protocols = protocols;
	}

	/**
	 * @return the frameNumber
	 */
	public String getFrameNumber() {
		return frameNumber;
	}

	/**
	 * @param frameNumber the frameNumber to set
	 */
	public void setFrameNumber(String frameNumber) {
		this.frameNumber = frameNumber;
	}

	public BigDecimal getTime_since_first() {
		return time_since_first;
	}

	public void setTime_since_first(BigDecimal timeSinceFirst) {
		time_since_first = timeSinceFirst;
	}

	public String getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(String arrivalTime) {
		this.arrivalTime = arrivalTime;
	}

	public long getFrame_Length() {
		return frame_Length;
	}

	/**
	 * @return the delta_from_previous_captured
	 */
	public BigDecimal getDelta_from_previous_captured() {
		return delta_from_previous_captured;
	}

	/**
	 * @param deltaFromPreviousCaptured the delta_from_previous_captured to set
	 */
	public void setDelta_from_previous_captured(BigDecimal deltaFromPreviousCaptured) {
		delta_from_previous_captured = deltaFromPreviousCaptured;
	}

	/**
	 * @return the delta_from_previous_displayed
	 */
	public BigDecimal getDelta_from_previous_displayed() {
		return delta_from_previous_displayed;
	}

	/**
	 * @param deltaFromPreviousDisplayed the delta_from_previous_displayed to set
	 */
	public void setDelta_from_previous_displayed(BigDecimal deltaFromPreviousDisplayed) {
		delta_from_previous_displayed = deltaFromPreviousDisplayed;
	}

	public void setFrame_Length(long frameLength) {
		frame_Length = frameLength;
	}

	public int getFrame_number() {
		return frame_number;
	}

	public void setFrame_number(int frameNumber) {
		frame_number = frameNumber;
	}

	int frame_number;
	
	public void packet()
	{
		arrivalTime = "";
		this.frame_Length = 0;
		this.frame_number = 0;
		this.time_since_first = new BigDecimal("0");
		frameNumber = "";
		this.delta_from_previous_captured = new BigDecimal("0");
		this.delta_from_previous_displayed = new BigDecimal("0");
		session = "";
		videoPacket = false;
		marker = false;
	}

	/**
	 * @return the marker
	 */
	public boolean isMarker() {
		return marker;
	}

	/**
	 * @param marker the marker to set
	 */
	public void setMarker(boolean marker) {
		this.marker = marker;
	}

	/**
	 * @return the videoPacket
	 */
	public boolean isVideoPacket() {
		return videoPacket;
	}

	/**
	 * @param videoPacket the videoPacket to set
	 */
	public void setVideoPacket(boolean videoPacket) {
		this.videoPacket = videoPacket;
	}
	
	
	
	
	
}
